package com.example.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

@Data
@TableName("t_consultation_records")
public class ConsultationRecord extends Model<ConsultationRecord> {
    /**
      * 主键
      */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
      * 用户id 
      */
    private Integer userId;

    /**
      * 用户名 
      */
    private String userName;

    /**
      * 律师id 
      */
    private Integer lawyerId;

    /**
      * 律师姓名 
      */
    private String lawyerName;

    /**
      * 用户发送的消息 
      */
    private String messageFromUser;

    /**
      * 律师回复的消息 
      */
    private String messageFromLawyer;

    /**
      * 创建时间 
      */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
      * 更新时间 
      */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

}